How to write text and image together in mysql with Asp.net mvc

Asked

Viewed 207 times

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?

  • 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

  • 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.

  • 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?

  • "Take away privacy"? My suggestion is to host the images within the same forum.

  • Right then you say in this case I have a normal text editor and an openfile for the image?

  • It would be more or less that. I would make a scheme that over the file in Ajax pro server while editing the text.

  • 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?

  • The idea would be to show the image in the textarea.

  • 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

Show 6 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.