Pasting binary data

Author Message

Iris Hoekstra - Roscam Abbing

Tuesday 09 March 2004 12:38:38 pm

I have got a very demanding customer who has decided that whenever he adds a link to a page he wants to be able to add an image simply by doing ctrl-c in the image and ctrl-v in whatever field I'm going to provide for this purpose in the link class.

So what I want to do is somehow decode (or encode) a copied image into text, the way it is done when you paste an image into an email.
I will have to build some kind of an extension to do this but I am absolutely clueless. I am not asking that you solve this problem for me but can someone point me in the right direction? What should I read? Even some words I could google with would be useful...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:23:47
Script start
Timing: Jan 31 2025 04:23:47
Module start 'layout'
Timing: Jan 31 2025 04:23:47
Module start 'content'
Timing: Jan 31 2025 04:23:47
Module end 'content'
Timing: Jan 31 2025 04:23:47
Script end

Main resources:

Total runtime0.0139 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0313151.1953
Module start 'layout' 0.00520.0028 739.226636.6172
Module start 'content' 0.00800.0047 775.843886.0156
Module end 'content' 0.01270.0012 861.859429.9922
Script end 0.0139  891.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.4946140.0002
Check MTime0.00118.2269140.0001
Mysql Total
Database connection0.00064.500310.0006
Mysqli_queries0.002618.323130.0009
Looping result0.00000.143810.0000
Template Total0.00096.410.0009
Template load0.00075.169610.0007
Template processing0.00021.170910.0002
Override
Cache load0.00053.625610.0005
General
dbfile0.00139.096580.0002
String conversion0.00000.070240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs