File URI - Change domain name Is it possible to change the domain name when creating urls to the image:

file_create_url($file->uri)

I need the images to say they're coming from another domain, but I can't change the base_url, since we need to keep drupal accessible on origin.

Example

Origin: http://domain1.com/files...

When creating image urls, they will be http://domain2.com/files...
Looking at file_create_url() I think it should be possible to pass in an absolute path, starting with /files... and then prefix the return value with your domain, protocol, whatever you need.

To handle that at a single location in code you can also use hook_file_url_alter().

Is it possible that you're looking for the CDN module?