Upload Large Files from URL using Cold Fusion

Đã Hủy Đã đăng vào Jan 26, 2016 Thanh toán khi bàn giao
Đã Hủy Thanh toán khi bàn giao

I allow my clients to upload pictures and videos. What happens is they are uploaded to a third party, and that third party sends me the URL of the file. I then do a CFHTTP to grab the file and copy it to my server, update database etc. I do so with this code:

<cfhttp throwonerror="false" url="#theurl#" method="get" getasbinary="yes" result="test">

<cfset filePath = "c:\websites\[login to view URL]\customers\#thefilename#">

<cffile action="write" file="#filePath#" output="#test.filecontent#">

Now this works beautifully on photos and any file that is not large. However, when someone uploads a video, etc. it fails every time and gives a error that says:

Error: Java heap space

[login to view URL]

I need someone to find a way to be able to pull a 250MB video for example from a url and be able to save it to my server etc, WITHOUT having the server crash.

Only reply if you KNOW how to solve this problem.

Nhiệt hạch lạnh Kiến trúc phần mềm

ID dự án: #9476510

Về dự án

2 đề xuất Dự án từ xa Feb 4, 2016 đang mở

2 freelancer chào giá trung bình$38 cho công việc này

AndrwProjects

Hi, we may put download into some queue, and then process download after. Thêm

$50 USD trong 4 ngày
(206 Nhận xét)
6.7