0
I am creating a forum in my application and would like to know how to save image and text together in Mysql, as in the message field there will be a WYSIWYG editor so I will have to record both text and images, among others. What kind of field do I use in Mysql and how do I save the two inside the Asp.net mvc?
I do not use EF!
In the same field or in separate fields?
– Leonel Sanches da Silva
In the same field. I was watching Blob but when I put a text in Mysql in this type of field it looked like this: To perform the activity I need to do an editorial§It is on the subject§It is graphical
– Deivid Farias
Yes, because it records a series of bits and possibly there is a problem with coding. I would not use blob for description field and host the images somewhere.
– Leonel Sanches da Silva
But as I will do to separate text from image, apart from that hosting the images outside the site does not take the privacy of the same?
– Deivid Farias
"Take away privacy"? My suggestion is to host the images within the same forum.
– Leonel Sanches da Silva
Right then you say in this case I have a normal text editor and an openfile for the image?
– Deivid Farias
It would be more or less that. I would make a scheme that over the file in Ajax pro server while editing the text.
– Leonel Sanches da Silva
I understood to upload the image while the text is edited, but the image would be inserted in the textarea too? or would be placed in the openfile?
– Deivid Farias
The idea would be to show the image in the textarea.
– Leonel Sanches da Silva
but how would it work if the textarea data was not sent in the form? does ajax do this? I’m trying to imagine the scenario but it’s hard
– Deivid Farias
Look at this.
– Leonel Sanches da Silva