FileResult->String and String->FileResult conversion