Forum rules - please read before posting.

Save a file into a database

edited September 2014 in Technical Q&A
Let's say I'd like to save a file into an online database instead that in a folder.

I've the following method:

"SaveFileIntoDatabase (fileName, myFileBytes);"

What do I need to insert in the myFileBytes to place there the .save file?

Or is there a different way you could suggest?

Thank you very much.

Comments

  • You're referencing a custom method - there's no SaveFileIntoDatabase in either AC or Unity's framework.  So it's impossible to answer without seeing the actual method!

    In the case that myFileBytes takes a string, you can try calling the function instead of Serializer.CreateSaveFile in SaveSystem.cs line 415, using the same arguments, eg:

    SaveFileInto (GetSaveFileName (slot), allData);

    Just speculation.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.