Fetch file from remote location

Author Message

Lars Eirik R

Friday 28 May 2010 9:29:05 am

Hi.

I need to fetch a file (that is download an store the image) from a remote location via http. Which ez publish class should I use for this?

I have used the ezContentUpload class to store local images sucessfully, but as my image does not come from a http post i cannot use the handleUpload method i believe.

Thanks.

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 18 2025 10:34:53
Script start
Timing: Jan 18 2025 10:34:53
Module start 'layout'
Timing: Jan 18 2025 10:34:53
Module start 'content'
Timing: Jan 18 2025 10:34:54
Module end 'content'
Timing: Jan 18 2025 10:34:54
Script end

Main resources:

Total runtime0.5887 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 591.5313152.6250
Module start 'layout' 0.00570.0029 744.156339.4453
Module start 'content' 0.00850.5784 783.6016432.2656
Module end 'content' 0.58700.0016 1,215.86728.1641
Script end 0.5886  1,224.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5190160.0002
Check MTime0.00130.2179160.0001
Mysql Total
Database connection0.00070.111610.0007
Mysqli_queries0.550893.5665460.0120
Looping result0.00040.0700440.0000
Template Total0.561995.520.2810
Template load0.00180.299520.0009
Template processing0.560295.159520.2801
Template load and register function0.00010.015810.0001
states
state_id_array0.00080.135210.0008
state_identifier_array0.00150.257420.0008
Override
Cache load0.00140.237680.0002
Sytem overhead
Fetch class attribute can translate value0.00040.065610.0004
Fetch class attribute name0.00380.646420.0019
XML
Image XML parsing0.00050.082210.0005
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00090.1600160.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs