creating image (jpg) file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

creating image (jpg) file

Post by lokesh_kumar_s »

hi i am using POST method to transfer the content of jpg file (i cannot modify this because it is in different platform)in php i am getting those contents which i sent but want to write into file called jjjj.jpg. i used the Fwrite function but if i see that file in the windows image viewer it will show as "No Preview Available" please help

i have used ContentType as application/x-www-form-urlencoded at the sending end(from where POST occurs)
do i need to use ContentType as image/jpeg if so i cannot able to get content inside $_POST['photo']

please help
Last edited by lokesh_kumar_s on Mon May 11, 2009 3:02 am, edited 1 time in total.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: creating image (jpg) file

Post by Benjamin »

:arrow: Moved to PHP - Code
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

Re: creating image (jpg) file

Post by lokesh_kumar_s »

cannot understand
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

Re: creating image (jpg) file

Post by lokesh_kumar_s »

No response to this aa?
Post Reply