# Upload data to model instead of file name

**URL:** <https://discuss.roboflow.com/t/upload-data-to-model-instead-of-file-name/6502>\
**Category:** 🤝  Community Help\
**Tags:** formats, export\
**Created:** [July 12, 2024, 5:29pm UTC](https://discuss.roboflow.com/t/upload-data-to-model-instead-of-file-name/6502 "2024-07-12T17:29:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew\_Bevington](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/drew_bevington/32/4638_2.png) [@Drew\_Bevington](https://discuss.roboflow.com/u/Drew_Bevington)\
**Post date:** [July 12, 2024, 5:29pm UTC](https://discuss.roboflow.com/t/upload-data-to-model-instead-of-file-name/6502/1 "2024-07-12T17:29:05Z")

</div>

Hey all. I had a quick question regarding the upload part of roboflow modeling. It seems to me that I have to upload a file name to the model.predict() function but I was wondering if there was any way in which I could directly upload the data instead?

This is the code I am talking about

```auto
result_json = model.predict('scan_image.png', confidence=10, overlap=30).json()

```

---

<div class="post-metadata">

**Author:** ![Lake](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lake/32/4110_2.png) [@Lake](https://discuss.roboflow.com/u/Lake)\
**Post date:** [July 12, 2024, 7:26pm UTC](https://discuss.roboflow.com/t/upload-data-to-model-instead-of-file-name/6502/2 "2024-07-12T19:26:53Z")

</div>

Hi there! Can you explain what you mean by directly upload? Do you mean use a URL of an image hosted online?

---

<div class="post-metadata">

**Author:** ![Drew\_Bevington](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/drew_bevington/32/4638_2.png) [@Drew\_Bevington](https://discuss.roboflow.com/u/Drew_Bevington)\
**Post date:** [July 12, 2024, 7:29pm UTC](https://discuss.roboflow.com/t/upload-data-to-model-instead-of-file-name/6502/3 "2024-07-12T19:29:54Z")

</div>

I am running a website and there is a file uploader which takes in an image. This image is then stored using BytesIO and this is what I want to upload into the model instead of dumping it into an image.jpg file on my computer and pulling the file address from that

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [August 2, 2024, 7:30pm UTC](https://discuss.roboflow.com/t/upload-data-to-model-instead-of-file-name/6502/4 "2024-08-02T19:30:46Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
