473,792 Members | 3,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

embedded image?

Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...so the solution is to reduce the quality/resolution of the
image being used.

The image appears to be embedded in a variable that is in alone in its
own php file (i'm 99% sure of this because i have tried editing the
actual images that are visible to windows and this makes no difference
to the exported rtf and also the size of the php file is almost the
same as the exported rtf files)
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d

and ends like

000
";

?>

All thats in between are numbers and letters, about 1.5mb worth, so
can't post them all...this is perhaps just the raw code of the image
file? I have tried to take this code and save it as a jpg/gif/png but
doesn't seem to show up as an image.

So basically, how can i edit/replace this image?

TIA

Mar 20 '08 #1
20 1841
sa************@ yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d
Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)

--
CKFinder :: ajax web file browser
http://www.ckfinder.com
Mar 20 '08 #2
On Mar 20, 11:16*am, Wiktor Walc <nore...@ckfind er.comwrote:
salmanjavah...@ yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d

Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)

--
CKFinder :: ajax web file browserhttp://www.ckfinder.co m
hey sorry i'm quite clueless with php...do you mean insert that
function after/before what is already there? and then how do i save
the result?

thx
Mar 20 '08 #3
On 20 Mar, 11:30, salmanjavah...@ yahoo.co.uk wrote:
On Mar 20, 11:16 am, Wiktor Walc <nore...@ckfind er.comwrote:
salmanjavah...@ yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d
Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)
--
CKFinder :: ajax web file browserhttp://www.ckfinder.co m

hey sorry i'm quite clueless with php...do you mean insert that
function after/before what is already there? and then how do i save
the result?

thx
Thats the least of your worries - you need to work out what the format
if the image is (indeed if it is in a published format at all).

Sorry - but if you can't do the easy stuff you've not much hope of
getting the hard stuff done - certainly not without a lot more help
than you'll get in usenet postings.

Go find a good developer.

C.
Mar 20 '08 #4
On Mar 20, 2:21*pm, "C. (http://symcbean.blogsp ot.com/)"
<colin.mckin... @gmail.comwrote :
On 20 Mar, 11:30, salmanjavah...@ yahoo.co.uk wrote:


On Mar 20, 11:16 am, Wiktor Walc <nore...@ckfind er.comwrote:
salmanjavah...@ yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d
Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)
--
CKFinder :: ajax web file browserhttp://www.ckfinder.co m
hey sorry i'm quite clueless with php...do you mean insert that
function after/before what is already there? and then how do i save
the result?
thx

Thats the least of your worries - you need to work out what the format
if the image is (indeed if it is in a published format at all).

Sorry - but if you can't do the easy stuff you've not much hope of
getting the hard stuff done - certainly not without a lot more help
than you'll get in usenet postings.

Go find a good developer.

C.- Hide quoted text -

- Show quoted text -
sod that i'll learn it myself, one more question before i go on my
quest, where's a good forum for complete newbie php questions? i've
just tried to do my first bit of what must be the simplest php and it
still didn't come out right (i thought i had followed the dummies
guide word for word)
Mar 20 '08 #5
sa************@ yahoo.co.uk wrote:
sod that i'll learn it myself, one more question before i go on my
quest, where's a good forum for complete newbie php questions? i've
just tried to do my first bit of what must be the simplest php and it
still didn't come out right (i thought i had followed the dummies
guide word for word)
This is as good a place as anywhere. Just make sure you have read the
relevant manual pages first and that you post good examples of what you
tried and precisely what went wrong.


Mar 21 '08 #6
On Mar 20, 11:16*am, Wiktor Walc <nore...@ckfind er.comwrote:
salmanjavah...@ yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d

Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)

--
CKFinder :: ajax web file browserhttp://www.ckfinder.co m
have tried that function to no avail...what else could it be?
Mar 23 '08 #7
On Mar 23, 10:58*am, salmanjavah...@ yahoo.co.uk wrote:
On Mar 20, 11:16*am, Wiktor Walc <nore...@ckfind er.comwrote:


salmanjavah...@ yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d
Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)
--
CKFinder :: ajax web file browserhttp://www.ckfinder.co m

have tried that function to no avail...what else could it be?- Hide quotedtext -

- Show quoted text -
Basically what happens is it takes a while for the page to load, and
then it is just a blank page, have used the echo function to display
the variable decoded. it does display something when i cut down the
code though, is it possible that it can't handle the amount of code
there is?
Mar 25 '08 #8
sa************@ yahoo.co.uk wrote:
On Mar 23, 10:58 am, salmanjavah...@ yahoo.co.uk wrote:
>On Mar 20, 11:16 am, Wiktor Walc <nore...@ckfind er.comwrote:


>>salmanjavah.. .@yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image 1 = "5cca52c0fb1534 00d
Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)
--
CKFinder :: ajax web file browserhttp://www.ckfinder.co m
have tried that function to no avail...what else could it be?- Hide quoted text -

- Show quoted text -

Basically what happens is it takes a while for the page to load, and
then it is just a blank page, have used the echo function to display
the variable decoded. it does display something when i cut down the
code though, is it possible that it can't handle the amount of code
there is?
What do you see when you display the page source in your browser? Is it
possible you're getting a timeout?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Mar 25 '08 #9
On 25 Mar, 17:02, Jerry Stuckle <jstuck...@attg lobal.netwrote:
salmanjavah...@ yahoo.co.uk wrote:
On Mar 23, 10:58 am, salmanjavah...@ yahoo.co.uk wrote:
On Mar 20, 11:16 am, Wiktor Walc <nore...@ckfind er.comwrote:
>salmanjavah... @yahoo.co.uk pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb1534 00d
Try this function and save the result to a file:
<?php
$result = base64_decode($ rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)
--
CKFinder :: ajax web file browserhttp://www.ckfinder.co m
have tried that function to no avail...what else could it be?- Hide quoted text -
- Show quoted text -
Basically what happens is it takes a while for the page to load, and
then it is just a blank page, have used the echo function to display
the variable decoded. it does display something when i cut down the
code though, is it possible that it can't handle the amount of code
there is?

What do you see when you display the page source in your browser? *Is it
possible you're getting a timeout?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===- Hide quoted text -

- Show quoted text -
the source code is completely blank
Mar 25 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2130
by: yawnmoth | last post by:
i've written a php script that generates images dynamically, via the GD library. i now want to detect whether or not the image is embedded within a homepage, or is being viewed by itself. at first, i thought that whether or not HTTP_SERVER_VARS was set, that it would mean that the image was embedded, but that's not necessarily the case, as it will also be set if it's just linked to from the webpage. so, any ideas?
1
7495
by: Zeroeffect | last post by:
Hello! I have a database with alot of embedded images. The reason for having the images embedded is security. My problem is that it works fine on my computer, but not on my clients computer. He hasn't got Microsoft Photo Editor installed and because of that he cant view the images when doubleclicking on them in the table. He can still see the pictures in the formview but when he doubelclicks the images a error message shows up.
7
16738
by: Robert W. | last post by:
I think I'm going insane, but thought I'd check with you all first before I get myself commited! Here's a method I've built to retrieve an image: public static Image GetImage(string imageBaseName, ref int imageNum) { string fullName = ""; Bitmap image = null; Stream stream;
2
1371
by: elziko | last post by:
I'm trying to use an embedded image(bitmap) using the following code: imgDrag = New System.Drawing.Bitmap(GetType(QueryResultGrid).Assembly.GetManifestResourceS tream("Comp.Tech.QueryResultGrid.ResultsGridDrag.bmp")) Where QueryResultGrid is the class thats going to use the image, Comp.Tech.QueryResultGrid is the assembly name and ResultsGridDrag.bmp is the file name of the embedded resource. However, on runing this line I get:
8
4005
by: news.microsoft.com | last post by:
I have an icon that I can reference by the following: Dim im As System.Drawing.Image im = im.FromFile(lsapppath & "ChkMrk.ico") g_mainform.fg.SetCellImage(g_mainform.FG.Row, 5, im) The problem is that I do NOT want to reference this as "from file" - the icon is already embedded in the program, but I can't seem to find a way to convert my embedded icon to an image. Any help appreciated. TIA.
0
1304
by: Smokey Grindle | last post by:
I want to have an HTML email that displays an embedded image in the message... how can I use the embedded object collection of the mail definition object to do this? how do I reference the embedded image in an image tag in the message? thanks!
7
4443
by: Trapulo | last post by:
Hello, I need to send an email from vb.net. The body may be html encoded, and all images related to the html (<img src....>) may be embedded in the email content instead of refer to remote urls. I've tried a lot of solution, but I can only get a message with images embedded but no html, or message with html but no images embedded. What is the right way to have this goal? I have a dictionary with <image name, image content as byte...
8
2458
by: Fred* | last post by:
Hello, I'm using Visual C# 2005 Express. if I create a new "application windows" project and run it (F5), it works well. (an empty window is launched..) as soon as I set the build action to embedded resource, I can't run it anymore because I got an error on 'WindowsApplication1.Form1.Dispose(bool)'..
6
6489
by: LEM | last post by:
Hi, I use a Webbrowser component to display a page that has been generate dynamically from my C# program. This page contains some images that are displayed using HTML code like this: <img src="person.gif"> person.gif is an image that is located in my bin folder.
0
9670
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10159
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2917
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.