CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 base64 encoded string image display

Print topic Send  topic

Author Message
THX1138

Posts: 37
Posted: 06/29/2008, 2:58 PM

hi all,

I have a flash applet embedded in webpages to allow doctors to draw squiggles on little diagnostic diagrams and then auto save to the appropriate medical record, as a base64 encoded string.

i can retrieve the string but havent figured out how to display it back

in php:

echo base64_decode( b64 string ) ; works

but im getting stuck somewhere simple with

echo base64_decode( $imagestringfromdbquery ) ;


does anybody have any spare clues, as now im watching blues clues as im out of ideas,

CCS4 / apache / mysql / php

tia
View profile  Send private message
datadoit
Posted: 06/29/2008, 5:45 PM

If you haven't already, just as a test, copy the database field value
directly into your echo statement to see if it works.

Another thing I would check is your PHP memory limit setting. Boost it
up if necessary.
THX1138

Posts: 37
Posted: 07/09/2008, 8:22 AM

thanks dd,
my problem was in the string encoding, which was being chunked into \" separated blocks.
using a different base 64 encoding, the php works beautifully ( base64_encode / base64_decode )

( the drawaings are still ugly, but i cant help that part )
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.