Digital Goods larger than 2GB
Digital Goods larger than 2GB
Hi
It is not possible to download Digital Goods, who are larger than 2GB. The file in the screenshot is 3.1GB large. Is there a Solution for large Files?
Thanks
Best regards
Daniel
It is not possible to download Digital Goods, who are larger than 2GB. The file in the screenshot is 3.1GB large. Is there a Solution for large Files?
Thanks
Best regards
Daniel
Re: Digital Goods larger than 2GB
Hi
I think i have found the part in the code where the size of the variable is defined. I changed the variables to double but it didn't worked. Has anyone a solution?
AddDigitalGood.ascx.cs
EditDigitalGood.aspx.cs
Best regards
Daniel
I think i have found the part in the code where the size of the variable is defined. I changed the variables to double but it didn't worked. Has anyone a solution?
AddDigitalGood.ascx.cs
Code: Select all
if (fileUploaded && System.IO.File.Exists(dg.AbsoluteFilePath) && !AllowOverwrite.Checked)
{
CustomValidator overwrite = new CustomValidator();
overwrite.IsValid = false;
overwrite.ControlToValidate = "ServerFileName";
overwrite.ErrorMessage = "The specified file already exists. You must allow overwrite or change the file name.";
overwrite.Text = "*";
phOverwrite.Controls.Add(overwrite);
}
else
{
if (!fileUploaded && System.IO.File.Exists(dg.AbsoluteFilePath))
{
//READ THE EXISTING FILE SIZE
System.IO.FileInfo fi = new System.IO.FileInfo(dg.AbsoluteFilePath);
[color=#FFFF00]dg.FileSize = (int)fi.Length;[/color]
}
dg.Save();
if (fileUploaded)
{
[color=#FFFF00] int fileLength = file.ContentLength;
Byte[] buffer = new byte[fileLength];
file.InputStream.Read(buffer, 0, fileLength);
dg.WriteFileData(buffer);[/color]
}
EditDigitalGood.aspx.cs
Code: Select all
if (FileData.PostedFile != null && !string.IsNullOrEmpty(FileData.PostedFile.FileName))
{
[color=#FFFF00]HttpPostedFile file = FileData.PostedFile;
int fileLength = file.ContentLength;
Byte[] buffer = new byte[fileLength];
file.InputStream.Read(buffer, 0, fileLength);
_DigitalGood.WriteFileData(buffer);[/color]
}
else
{
//VALIDATE THE FILE SIE
if (System.IO.File.Exists(_DigitalGood.AbsoluteFilePath))
{
//READ THE EXISTING FILE SIZE
System.IO.FileInfo fi = new System.IO.FileInfo(_DigitalGood.AbsoluteFilePath);
[color=#FFFF00]_DigitalGood.FileSize = (int)fi.Length;[/color]
}
}
Daniel
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Digital Goods larger than 2GB
What error do you get downloading? Or is the error just the display of the file size? I am not sure I ever hooked up a 2GB download, but I do believe I tested 500M.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Re: Digital Goods larger than 2GB
I get this error:
An other error:
Re: Digital Goods larger than 2GB
Is the attached digital good by any chance an XML file?
Even for XML it should not have given any problem ... but I am just wondering.
Btw. What version/build of AC7 are you using? (Help -> About)
Even for XML it should not have given any problem ... but I am just wondering.
Btw. What version/build of AC7 are you using? (Help -> About)
Re: Digital Goods larger than 2GB
It's an ISO file.
AbleCommerce Version:
AbleCommerce Version:
Code: Select all
PLATFORM: ASP.NET
VERSION: 7.0
BUILD: 9879
AjaxControlToolkit: 1.0.10301.0
CommerceBuilder: 7.0.9876.0
CommerceBuilder.AuthorizeNet: 7.0.9764.0
CommerceBuilder.CanadaPost: 7.0.0.0
CommerceBuilder.CCH: 7.0.0.0
CommerceBuilder.Configuration: 7.0.9842.0
CommerceBuilder.CyberSource: 7.0.9764.0
CommerceBuilder.DataClient.Api: 1.0.0.19
CommerceBuilder.DataClient.Csv: 1.0.0.0
CommerceBuilder.DHL: 7.0.8825.0
CommerceBuilder.ECB: 7.0.0.0
CommerceBuilder.FedEx: 7.0.9725.0
CommerceBuilder.FRBNY: 7.0.0.0
CommerceBuilder.GoogleCheckout: 7.0.9632.0
CommerceBuilder.InternetSecure: 7.0.9764.0
CommerceBuilder.LinkPoint: 7.0.9764.0
CommerceBuilder.Paradata: 7.0.9764.0
CommerceBuilder.PayFlowPro: 7.0.9764.0
CommerceBuilder.PayJunction: 7.0.9764.0
CommerceBuilder.PayPal: 7.0.9877.0
CommerceBuilder.Services: 7.0.9733.0
CommerceBuilder.SkipJack: 7.0.9764.0
CommerceBuilder.UPS: 7.0.8695.0
CommerceBuilder.USPS: 7.0.9728.0
CommerceBuilder.Web: 7.0.9777.0
ComponentArt.Web.UI: 2007.1.1566.3
CyberSource.Base: 2.0.0.0
CyberSource.Clients: 5.0.2.0
CyberSource.Clients.XmlSerializers: 5.0.2.0
CyberSource.WSSecurity: 2.0.0.0
CybsWSSecurityIOP: 1.0.0.0
edtFTPnet: 1.2.4.0
FredCK.FCKeditorV2: 2.5.2912.21007
ICSharpCode.SharpZipLib: 0.85.1.271
LinkPointTransaction: 1.0.1797.29766
log4net: 1.2.10.0
Microsoft.Practices.EnterpriseLibrary.Common: 2.0.0.0
Microsoft.Practices.EnterpriseLibrary.Data: 2.0.0.0
Microsoft.Practices.ObjectBuilder: 1.0.51205.0
Microsoft.Web.Preview: 1.2.61025.0
NVelocity: 7.0.8530.0
PaygatewayNET: 3.0.0.0
paypal_base: 4.2.1.0
PFProCOMLib: 1.0.0.0
PFProdotNET: 0.0.0.0
Validators: 1.0.0.0
WebChart: 1.1.1.6
wwHoverPanel: 1.85.0.0
-
- Ensign (ENS)
- Posts: 4
- Joined: Tue Mar 24, 2009 4:45 am
Re: Digital Goods larger than 2GB
Logan_AbleCommerce wrote:What error do you get downloading? Or is the error just the display of the file size? I am not sure I ever hooked up a 2GB download, but I do believe I tested 500M.
Hi Logan - I'm wish to provide a 150MB download (digital good) to my shop visitors. I'm having trouble uploading the 150GB file (for various reasons including the ASP.net max file size). How did you upload the 150MB file?
Our store is located on our server to which we have full access. I'm wondering if its possible to just link to the file rather than have to upload it via the store again seeing as the file is already on the server?
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Digital Goods larger than 2GB
The simplest way is probably to create a dummy text file and give it the same name as the file you want to upload. Then create a digital good through the web interface by uploading your dummy file. After the file is uploaded, use some means (e.g. ftp) to connect to your server and replace the dummy file found in the App_Data\DigitalGoods folder.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.