Sep 02, 2015, 6:06 PM
Problem with Ext:Image property Html
Hi,
I save a Image in my database
but no image is showed why??, is necessary more code??
I don't have a lot experience with VS and ext.net
thanks
I save a Image in my database
Stream fs = fuAddImg.PostedFile.InputStream;
BinaryReader reader = new BinaryReader(fs);
documento = reader.ReadBytes((Int32)fs.Length);
String pextension = Path.GetExtension(fuAddImg.PostedFile.FileName);
if (pextension.Equals(".gif") || pextension.Equals(".jpg") || pextension.Equals(".png"))
{
string url = "data:image/jpg;base64," + Convert.ToBase64String(documento); <--- this code is saved in the DB
wrapped.Html = "<img id='ImagenArticulo' border='1px' src='" + url + "' >";
and yhen a Im trying to see a ImagetxtCom.Text = o_cat_articulo.com_articulo;
hdImagen.Text = o_cat_articulo.img_articulo.Trim();
string Url = "<img id='ImagenArticulo' border='1px' src='" + hdImagen.Text + "' >"; <--- I interseted on run program and can see a Imagen
wrapped.Html = "<img id='ImagenArticulo' border='1px' src='' >"; <<-- then a set the same code in the Ext:Image control Id wrapped
and in the explorer the code is but no image is showed why??, is necessary more code??
I don't have a lot experience with VS and ext.net
thanks
Last edited by Daniil; Sep 07, 2015 at 12:25 PM.
Reason: Please use [CODE] tags