| bundleName | string | Yes | Bundle name of the application, which can be obtained by using the method provided by [bundle.BundleInfo](js-apis-bundle-BundleInfo.md). |
| bundleName | string | Yes | Bundle name of the application, which can be obtained by using the method provided by [bundle.BundleInfo](js-apis-bundle-BundleInfo.md). |
| uri | string | Yes | Name of the file in the application sandbox.<br>Currently, the URI has not been upgraded to the standard format. It can consist of digits (0–9), letters (a–z and A–Z), underscores (_), and period (.) only.|
| uri | string | Yes | Name of the file in the application sandbox.<br>Currently, the URI has not been upgraded to the standard format. It can consist of digits (0–9), letters (a–z and A–Z), underscores (_), and period (.) only.|
...
@@ -63,15 +63,16 @@ Called when the server sends a file to the client. If the file is sent successfu
...
@@ -63,15 +63,16 @@ Called when the server sends a file to the client. If the file is sent successfu
> **NOTE**
> **NOTE**
>
>
> The **File** returned by **AsyncCallback** is the file.backup.[File](#file). The returned file belongs to the backup service. Once the file is closed, the backup service shall clear the resources used by the file. However, the client must close the file handle first.
> The **File** returned by **AsyncCallback** is the file.backup.[File](#file). The returned file belongs to the backup service. Once the file is closed, the backup service shall clear the resources used by the file at the proper time. However, the client must close the file handle first.
| callback | AsyncCallback<[FileData](#filedata)> | Yes | Callback invoked to return the result. If the file is obtained, **err** is **undefined**. Otherwise, **err** is an error object.|
| callback | AsyncCallback<[FileData](#filedata)> | Yes | Callback invoked to return the result. If the file is obtained, **err** is **undefined**. Otherwise, **err** is an error object.|
**Error codes**
**Error codes**
For details about the error codes, see [File Management Error Codes](../errorcodes/errorcode-filemanagement.md).
For details about the error codes, see [File Management Error Codes](../errorcodes/errorcode-filemanagement.md).
| ID | Error Message |
| ---------------------------- | ---------- |
| ID| Error Message |
| -------- | ----------------------- |
| 13600001 | IPC error |
| 13600001 | IPC error |
| 13900005 | I/O error |
| 13900005 | I/O error |
| 13900011 | Out of memory |
| 13900011 | Out of memory |
...
@@ -276,14 +281,15 @@ Obtains a JSON file that describes local capabilities. This API uses a promise t
...
@@ -276,14 +281,15 @@ Obtains a JSON file that describes local capabilities. This API uses a promise t