473,499 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

show picture

hi,
i wrote a code that open a picture and store it in a string.
then its save the base_64 of this string in a jpeg file and then i can
show this picture.
but i want to show this picture without save it.
how can i do this??*
Sep 27 '08 #1
5 1897
hareldo schreef:
hi,
i wrote a code that open a picture and store it in a string.
then its save the base_64 of this string in a jpeg file and then i can
show this picture.
but i want to show this picture without save it.
how can i do this??
http://www.phpjabbers.com/ask15-disp...-a-script.html

(i whish to express my thanks to Google..)

--
Luuk
Sep 27 '08 #2
hareldo wrote:
hi,
i wrote a code that open a picture and store it in a string.
then its save the base_64 of this string in a jpeg file and then i can
show this picture.
but i want to show this picture without save it.
how can i do this??
First of all, a jpeg is not base_64 encoded. You may give the file a
..jpeg extension, but it is not a jpeg file.

You need to have an <img...statement in your HTML, and instead of
loading the image directly you need to call a PHP script. The script
will then create the image and display it, (with the correct content
type set in the header).

http://www.google.com/search?q=php+image&btnG=Search

Should get you started on some tutorials on how to use the gd functions.
See especially the third one down (from zend). A little verbose with
too few examples, imho, but quite detailed and accurate.

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

Sep 27 '08 #3
First of all, a jpeg is not base_64 encoded. *You may give the file a
.jpeg extension, but it is not a jpeg file.

You need to have an <img...statement in your HTML, and instead of
loading the image directly you need to call a PHP script. The script
will then create the image and display it, (with the correct content
type set in the header).

http://www.google.com/search?q=php+image&btnG=Search

Should get you started on some tutorials on how to use the gd functions.
* See especially the third one down (from zend). *A little verbose with
too few examples, imho, but quite detailed and accurate.
i think its base_64 because when i do base_64 and save it in a jpeg
file in the server,its save it successful and after this i can see it.
Sep 27 '08 #4
when i use the imageJpeg function,like this:

imageJpeg($im,"aa.jpg",100;
the im var is store the image,its save it successful with the name
aa.jpg in my server.but when i use when the second parameter is
null,it suppose to show it,but instead of its just write it and i dont
see any picture.*
Sep 27 '08 #5
hareldo wrote:
when i use the imageJpeg function,like this:

imageJpeg($im,"aa.jpg",100;
the im var is store the image,its save it successful with the name
aa.jpg in my server.but when i use when the second parameter is
null,it suppose to show it,but instead of its just write it and i dont
see any picture.
Please see the links I pointed you to.

You cannot just output an image in the middle of an html page, and the
links explain all how to do it.

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

Sep 27 '08 #6

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

Similar topics

2
13416
by: Sam | last post by:
Hello everyone, I have a table, which contains a picture column, I put URL info into it. "www.myweb.com/1.jpg..." I want to show this picture in my crystal report, I find some samples show the...
8
7157
by: marslee | last post by:
I know how to use buttons to go to the next and previous picture in slide show, but i want to change it so when the user clicks the picture instead of button, the script shows the next phicture. ...
1
8319
by: Matt Evans | last post by:
Hi, this must have been asked for before, but I cannot see it. Hopefully this is very simple. I have a form which shows everything from a table. In this table is a picture field called photo....
5
16368
by: Sukhanov Volodya | last post by:
Hello, all! Does anybody knows, how I can show an image field SQL Server using VB. NET ? I have an database, which has an table with an field which has type 'image' (the type of field) I want...
1
1595
by: elbertlev | last post by:
Hi! I have an application where images (jpeg) have to be annotated by an operator. I use PIL like: import Image im = Image.open(Path) im.show() raw_input(Path + ':') .....
1
2217
by: urange | last post by:
Hi to all, I am setting up a database which has to store a great number of images. I will therefore store the images not as OLE but as a text link to the file (maybe I'll try the BLOB-solution)....
19
21337
by: muddasirmunir | last post by:
can any body tell me how to round numbers in in exactly two decimal places i had use a function round(text1.text,2) but whenever there is zere(0) at the end it does not show it for eg for round...
1
2548
oranoos3000
by: oranoos3000 | last post by:
hi i make a shopping online that in home page i show my product picture's to user (information product's such as address location of picture and name and the other properties is kept in database my...
1
3782
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
7134
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,...
0
7229
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...
1
6905
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...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
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,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
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 ...
0
311
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...

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.