# Issue when uploading big files to gateway database

**URL:** <https://forum.inductiveautomation.com/t/issue-when-uploading-big-files-to-gateway-database/54038>\
**Category:** Ignition\
**Created:** [December 13, 2021, 10:27am UTC](https://forum.inductiveautomation.com/t/issue-when-uploading-big-files-to-gateway-database/54038 "2021-12-13T10:27:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [December 13, 2021, 10:27am UTC](https://forum.inductiveautomation.com/t/issue-when-uploading-big-files-to-gateway-database/54038/1 "2021-12-13T10:27:42Z")

</div>

I followed the example below to upload files to ignition gateway database, MSSQL.  
[https://www.ourscada.com/main/system/help/Example\_-\_Storing\_Files\_in\_a\_Database.html](https://www.ourscada.com/main/system/help/Example_-_Storing_Files_in_a_Database.html)  
It works fine with files with smaller size, smaller than 2.7mb.  
If larger than 2.7mb, there’s an error message popping up, about the Java heap issue.  
The gateway designer memory is 4GB.  
Is there anyway to resolve this issue?  
Some of the files could be over 10mb, and I want to view them from both Vision and Perspective. I thought to store the files in DB is the only way to view the file from both platform.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/5/056591bd0ebcd0c96aa03f745acc225e6b3885f5.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/4/34805631bec5732f94961bd41dec97dea890bf84.png)
