Page 1 of 1

creating image (jpg) file

Posted: Mon May 11, 2009 1:54 am
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

Re: creating image (jpg) file

Posted: Mon May 11, 2009 1:59 am
by Benjamin
:arrow: Moved to PHP - Code

Re: creating image (jpg) file

Posted: Mon May 11, 2009 2:06 am
by lokesh_kumar_s
cannot understand

Re: creating image (jpg) file

Posted: Tue May 12, 2009 3:29 am
by lokesh_kumar_s
No response to this aa?