This is a migrated thread and some comments may be shown as answers.

Conver image to stream. How?

3 Answers 150 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 30 Oct 2012, 10:16 AM
Hi !!

I have placed a radeditor control in my aspx page and copy pasted some content from microsoft word to it that was containing an image along with some text data. Then I saved the data. I marked that it was converting the image to stream. The string I have noticed for the image was something like this :

   
<img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASUAAADfCAIAAAA/e1LrAAAgAElEQVR4nO19T2zjRr6mjn30YQ86vMMTkEMIzCHazcyE7/X8CSfdSTOd96b5pjMxMz2Jh3EStaYnYwg+GIIvBuGDQfhgCD4YhA4G6IMA6qBdarHCUotdYUtvRm+oSTRDzUQzVBIlqXQrnUpH3eECPtQeKKtl8Y/+2JbdUn34UPipXCyWKH7+WCR/ZAgTEBBMC6HzHgABwRyhq7dm+1Gz/bDZfti812ne/aZ595vm3QfNuw+aXzxofvHgoy8efHTvwcf3Hnx875tW+5tP251Pv3z42f2Hn91/BL96BNG3ENlfIPuLr+0vvv5/8Gv7iwdH/Nr+4msbfm1DZEP07efHaDuEyIZHsQe/+tbhZ199++n9R5/ef9S6/6j15aNP2g+7vOfD9sOP2w8/vvfw43vd4KPH7DTvdZr3OpbDu9948u93O3+/17Hudv7u8F7n73c7f7vbLf/2xTcOGw7hgwZ88CF88OHnx/jXHj978JfPvv7LZ1/XP/3abCHzE/TnT7760ydf/emT+x98dP+Dj758v9l+32q/b7X/2Meq1a72BVXryz9aX/6xef+P1v33m/ff/+irDz7+6oOP0Qef9Ph17ZOvP/Dgg6Oyy1rrQa314E+fPvjTZw/+/Pk35ucdEz6sf/HwL3cf/fXeow/vPWq0v3X4ty/tPn77ty+//Vv720b7UeNelx/ee/jh3Yd/vfvwL1906rBjfv6N+fk3f/7sQe3TBx988uD9T77+48fI+AgZ1ld/sL76j7/fr/ztfqXx5e8bX/7+w/bvPmz/7sN7//7XLstH/Hc3/9JluY8DbX734b3ffdj+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+kMoDTe/K0/HkdvQ9xpwKlG05u3S4ziZgF9Dm3vXteAa7ldt7/er8104hn0t9Gvv2FX/hu7yoMSwIeYeZ5xxMZeYxBCel5zH0/2MOBvyhYnb7BWVcZQg+UkqoionOzpbQCOv012/W3g/7pn5Zn629CaEf1trPYTrG7ot5gaZ83fJkB//lt0k5O2Jdu27Y5z/yNCbQQhFDdF9/mSHgbmb6k1VtliUUtF9RQsJWEp4ZSO3lIHenxHZzcBvdG9ZjDu+wP6jpSCnKr/v/5A3P+fvlc/sK6+pdynK7znk37t/QQwcfuBcXp+94H2wY46tXjW/G1C9OW/JdYlaUvSC7rVtKyGpeU1cVPUch7Pw+thwN/UHV5PC6ipoIpoFRI96nndvaxe0Mn9k/ND4m8eMOumnJbjsXg8FpfTcoCzORi8/lbXQTZhZJMgkwCZhL4v6GlB3eHVjIoxTh2AI38zMMZqRiX3T85PTPztFDBi/pu85zEDlPdkcv/k/JD42ylgxPy31LYkbUnStiRtSf0xyX+bn5j42ymAPL+EcEQSfzsFkOeXkHjEmPjbKYA8v4RwRBJ/OwUIy0LfNr1A/01JfNFi4m+ngHgsHl+Ok5KUo5Tj7l1EbwQE0wPRGwHB9ED0RkAwPRC9ERBMD0RvBATTA9EbAcH04KE3AgKCKYDojYBgevj/IpFAw+sEFQ8AAAAASUVORK5CYII=" /><br />

I copied this source and pasted it in another html file and run it in browser, it was showing the image i have copied.

Now, I have copied some other text along with image from some other website  (browser)  and pasted it to editor, It was displaying image tag along with path.

What I want is copy and paste image from browser to editor should convert it like above instead it having src="domain/path/filename.extesion".

Is it possible? Another solution is to get all the image tags from content() method and replace its src attribute value. But for this I have to fetch the image from URL, convert it to byte or stream (i don't know how you people are doing it) , make in encode with base 64 and then replace it with actual source.

Can anyone help??

Thank you...

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Nov 2012, 03:45 PM
Hi,

You can find very detailed explanation about pasting images from the clipboard in the following forum thread: Paste image from clipboard in rad editor.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dev
Top achievements
Rank 1
answered on 17 Nov 2012, 07:27 AM
Resolved it my self !!

Please follow my StackOverflow post for the resolution.

Thank you,
Dev
0
Rumen
Telerik team
answered on 20 Nov 2012, 03:35 PM
Hi,

I am glad that you've implemented a solution for your scenario.

If you would like you can implement a simple working project and share it with your fellow developers in our code library section for RadEditor. Your work will be gladly rewarded with Telerik points.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Dev
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Dev
Top achievements
Rank 1
Share this question
or