W3C home > Mailing lists > Public > www-svg@w3.org > March 2004

SVG not retrieved (please help)

From: shwathi a <loveshwathi@yahoo.co.in>
Date: Mon, 8 Mar 2004 04:27:13 +0000 (GMT)
Message-ID: <20040308042713.9076.qmail@web8203.mail.in.yahoo.com>
To: www-svg@w3.org
I pass a record number from one page1 to page2.
The corresponding SVG code from MySQL is displayed in PHP in page2.
This is page2 for a better idea:
<? 
header("Content-type: image/svg+xml"); 
print('<?xml version="1.0" encoding="iso-8859-1"?>'); 
?> 
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"> 
<? 
print ('<svg xml:space="preserve" x="-4.72439in" y="3.5434in" width="9.44879in" height="7.0868in" style="shape-rendering:geometricPrecision; text-rendering:geomet 
ricPrecision; image-rendering:optimizeQuality" viewBox="-4724 0 9448 7086" zoomAndPan="disable">'); 
// Connection 
$conec = mysql_connect("localhost","admin","psswd"); 
mysql_select_db("vgsvg",$conec); 
// Query 
$query1 = ("select img from pict where id='$rno'"); 
$res1 = mysql_query($query1,$conec); 
if (!$res1) 
die("Query1 Failed!"); 
while ($row = mysql_fetch_array ($res1)) 
$mycopy1=$row[img]; 
mysql_free_result ($res1); 
// Display of SVG 
print $mycopy1; 
print ('</svg>'); 
?> 
If the svg code to be retrieved is small, then the image is displayed correctly. (So, no probs in Passing values!)
If the svg code is 9Kb or more, I'm not able to retrieve the file. 
Should I give any specification in the Doctype? 
I've tried several Doctypes, in vain. Please Help!  
Shwathi


Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
Received on Sunday, 7 March 2004 23:27:45 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:26 GMT