Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I am trying to make a web application in vb.net which can prepare a document with image and tables. And the document will be stored in data base as html format and image should be in byte code. can anybody say how can i do this.

In html editor we cannot use images and i tried tinyMce too. but in TinyMce i cannot able to get the html format and byte codes. and in telerik:RadEditor instead of byte code i am getting the url of images .... :(

Please help me out.
Posted
Comments
ArunRajendra 4-Nov-14 1:52am    
We cannot embed the images as byte code in HTML. It will be always link to the path. My suggestion is have another DB table for images and link it with main Document table. You can name the images as sequence number img1,img2,etc and embed in the html. But this can get out of control when you edit. This just a suggestion you have improve on this or find some other alternative for generating the image names.
afsal vasco 10-Nov-14 3:34am    
ArunRajendra,

Thanks for your suggestion. Let me try in that way :)
Sergey Alexandrovich Kryukov 4-Nov-14 1:53am    
"Text editor with images" is oxymoron. :-)
Of course it's possible to make an HTML editor with images. Just look at the CodeProject editor for article submission (you can try it out without posting an article).
—SA
afsal vasco 10-Nov-14 3:46am    
Hi Kryukove,

Thanks for replaying.

Now i am using the same method which we can see in codeProject editor for article submission. But in that we cannot use images from local computer. it is have the url of the image.
What i need is, select an image from the local computer and save the image in db as byte code.

pleas tell me if you have any idea for that.
Sergey Alexandrovich Kryukov 10-Nov-14 8:08am    
Examples of file uploading are everywhere... :-)
—SA

1 solution

you can use CK Editor
visit : CK Editor
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900