asp.net mvc 3 - How to Get background image from db -


i trying set div's background image db.

for using

$("#" + kcode).css("background-image", "url('/hierarchy/getfile/11012')" ); 

and server code follow

 [httpget]     public filestreamresult getfile(string id)     {                 stream strm = new memorystream();         //my db code         filestreamresult fsr = new filestreamresult(strm,"image");         return fsr;     } 

but not getting it. instead getting error in firebug

{ "networkerror: 404 not found - //localhost:7474/hierarchy/getfile/11012"} 

other post method on same location working fine.

am doing wrong?

thanks in advance.

vidhin


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -